export const phonebasicComponents = [
    {
        type: 'BaseTitle',
        name: '标题',
        icon: 'icon-input',
        options: {
            defaultValue: '标题',
            inline: false,
            textAlign: 'center',
            color: '#000',
            fontSize: '12px',
            fontWeight: 600,
            marginLeft: '12px',
            marginRight: '0px',
            titleHeight: '',
            lineHeight: '',
            linkType: 'inline',
            linkUrl: '',
            query: ''
        }
    },
    {
        type: 'BaseImg',
        name: '图片',
        icon: 'icon-tupian',
        options: {
            defaultValue: 'https://avatars2.githubusercontent.com/u/12621342?v=4',
            textAlign: 'center',
            backgroundColor: '#fff',
            borderRadius: '0px',
            width: '50px',
            height: '50px',
            linkType: 'inline',
            linkUrl: '',
            query: ''
        }
    },
    {
        type: 'BaseInput',
        name: '单行文本',
        icon: 'icon-input',
        options: {
            width: '100%',
            defaultValue: '',
            required: false,
            dataType: 'string',
            pattern: '',
            placeholder: ''
        }
    },
    {
        type: 'BaseTextarea',
        name: '多行文本',
        icon: 'icon-diy-com-textarea',
        options: {
            width: '100%',
            defaultValue: '',
            required: false,
            disabled: false,
            pattern: '',
            placeholder: ''
        }
    },
    {
        type: 'BasePassword',
        name: '密码输入框',
        icon: 'icon-number',
        options: {
            defaultValue: '123'
        }
    },
    {
        type: 'BaseNumber',
        name: '计数器',
        icon: 'icon-number',
        options: {
            width: '',
            required: false,
            defaultValue: 0,
            min: '',
            max: '',
            step: 1,
            disabled: false
        }
    },
    {
        type: 'BaseRadio',
        name: '单选框组',
        icon: 'icon-radio-active',
        options: {
            inline: false,
            defaultValue: '',
            showLabel: false,
            options: [
                {
                    value: '选项1',
                    label: '选项1'
                },
                {
                    value: '选项2',
                    label: '选项2'
                },
                {
                    value: '选项3',
                    label: '选项3'
                }
            ],
            required: false,
            width: '',
            remote: false,
            remoteOptions: [],
            props: {
                value: 'value',
                label: 'label'
            },
            remoteFunc: ''
        }
    },
    {
        type: 'BaseCheckbox',
        name: '多选框组',
        icon: 'icon-check-box',
        options: {
            inline: false,
            defaultValue: ['选项1', '选项2'],
            showLabel: false,
            options: [
                {
                    value: '选项1',
                    label: '选项1'
                },
                {
                    value: '选项2',
                    label: '选项1'
                },
                {
                    value: '选项3',
                    label: '选项1'
                }
            ],
            required: false,
            width: '',
            remote: false,
            remoteOptions: [],
            props: {
                value: 'value',
                label: 'label'
            },
            remoteFunc: ''
        }
    },
    {
        type: 'BaseDateTime',
        name: '时间选择器',
        icon: 'icon-time',
        options: {
            defaultValue: '21:19:56',
            readonly: false,
            disabled: false,
            editable: true,
            clearable: true,
            placeholder: '',
            startPlaceholder: '',
            endPlaceholder: '',
            isRange: false,
            arrowControl: true,
            format: 'HH:mm:ss',
            required: false,
            width: ''
        }
    },
    {
        type: 'BaseDateTime',
        name: '日期选择器',
        icon: 'icon-date',
        options: {
            defaultValue: '',
            readonly: false,
            disabled: false,
            editable: true,
            clearable: true,
            placeholder: '',
            startPlaceholder: '',
            endPlaceholder: '',
            type: 'date',
            format: 'yyyy-MM-dd',
            timestamp: false,
            required: false,
            width: ''
        }
    },
    {
        type: 'BaseRate',
        name: '评分',
        icon: 'icon-icon-test',
        options: {
            defaultValue: 3,
            count: 5,
            size: 20,
            disabled: false,
            allowHalf: false,
            required: false
        }
    },

    {
        type: 'BaseSelect',
        name: '下拉选择器',
        icon: 'icon-select',
        options: {
            defaultValue: '全部商品',
            options: [
                { text: '全部商品', value: '全部商品' },
                { text: '新款商品', value: '新款商品' },
                { text: '活动商品', value: '活动商品' }
            ]
        }
    },
    {
        type: 'BaseSwitch',
        name: '开关',
        icon: 'icon-switch',
        options: {
            defaultValue: false,
            required: false,
            disabled: false
        }
    },
    {
        type: 'BaseStep',
        name: '步骤条',
        icon: 'icon-color',
        options: {
            defaultValue: '',
            options: [
                {
                    value: '步骤1',
                    label: '步骤1'
                },
                {
                    value: '步骤2',
                    label: '步骤'
                },
                {
                    value: '步骤3',
                    label: '步骤'
                }
            ]
        }
    },
    {
        type: 'BaseProgress',
        name: '进度条',
        icon: 'icon-color',
        options: {
            defaultValue: '50'
        }
    }
]

export const phoneadvanceComponents = [
    {
        type: 'BaseUpload',
        name: '文件上传',
        icon: 'icon-time',
        options: {
            defaultValue: []
        }
    },
    {
        type: 'BasecountDown',
        name: '倒计时',
        icon: 'icon-time',
        options: {
            defaultValue: 30 * 60 * 60 * 1000
        }
    },
    {
        type: 'BaseNavicon',
        name: '导航栏',
        icon: 'icon-time',
        options: {
            menuName: '导航栏',
            menuId: '',
            options: []
        }
    },
    {
        type: 'BaseSwiper',
        name: '图片轮播',
        icon: 'icon-time',
        options: {
            // defaultValue: '',
            options: [
                {
                    src: 'https://img.yzcdn.cn/vant/apple-1.jpg'
                },
                {
                    src: 'https://img.yzcdn.cn/vant/apple-2.jpg'
                }
            ]
        }
    },
    {
        type: 'BaseMusic',
        name: '音频播放',
        icon: 'icon-time',
        options: {
            defaultValue: '',
            src: ''
        }
    },
    {
        type: 'BaseVideo',
        name: '视频播放',
        icon: 'icon-time',
        options: {
            defaultValue: '',
            src: ''
        }
    },
    {
        type: 'BaseCitySelect',
        name: '省市选择器',
        icon: 'icon-time',
        options: {
            defaultValue: '',
            areaList: {
                province_list: {
                    110000: '北京市',
                    120000: '天津市'
                },
                city_list: {
                    110100: '北京市',
                    110200: '县',
                    120100: '天津市',
                    120200: '县'
                },
                county_list: {
                    110101: '东城区',
                    110102: '西城区',
                    110105: '朝阳区',
                    110106: '丰台区',
                    120101: '和平区',
                    120102: '河东区',
                    120103: '河西区',
                    120104: '南开区',
                    120105: '河北区'
                }
            }
        }
    },
    {
        type: 'BasePickerSelect',
        name: 'picker选择器',
        icon: 'icon-time',
        options: {
            defaultValue: '',
            options: [
                { text: '杭州', value: '0' },
                { text: '宁波', value: '1' },
                { text: '温州', value: '2' }
            ]

        }
    },
    {
        type: 'BaseAddressEdit',
        name: '地址编辑',
        icon: 'icon-ic',
        options: {
            defaultValue: '',
            areaList: {},
            searchResult: []
        }
    },
    {
        type: 'BaseEditor',
        name: '编辑器',
        icon: 'icon-fuwenbenkuang',
        options: {
            defaultValue: '',
            width: ''
        }
    }
]

export const phonelayoutComponents = [
    {
        type: 'BaseGrid',
        name: '栅格布局',
        icon: 'icon-grid-',
        columns: [
            {
                span: 12,
                list: []
            },
            {
                span: 12,
                list: []
            }
        ],
        options: {
            gutter: 0,
            justify: 'start',
            align: 'top'
        }
    }
]
